package com.easybuyzjf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easybuyzjf.mapper.EbNewsMapper;
import com.easybuyzjf.model.EbNews;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EbNewsService {

    @Autowired
    private EbNewsMapper ebNewsMapper;

    /**
     * @param psize
     * @param limit
     * @return
     */
    public Page<EbNews> list(int psize,int limit){
        Page<EbNews> page=new Page(psize,limit);

        return ebNewsMapper.selectPage(page,null);
    }
}
